import wxHttp from "@/utils/wxRequest";

export function tableSearch(url, params) {
  return wxHttp.get(url, params)
}

/**
 *
 * @param params {deptId:0}
 */
export function teamDepts(params) {
  return wxHttp.get('/wxqy/contact/dept/list', params)
}

/**
 *
 * @param params {deptId:1,name:''}
 */
export function teamUsers(params) {
  return wxHttp.get('/wxqy/contact/list', params)
}


export function customerDetail(id) {
  return wxHttp.get('/wxqy/customer/detail', {id});
}
